package hey.dylan.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/test/hello")
    @PreAuthorize("@av.hasAuthority('system:dept:list')")
    public String hello(){

        return "nihaoyahaha";

    }

}
